package cn.kshost.zqyg.manager.mapper;

import cn.kshost.zqyg.model.entity.product.Category;
import cn.kshost.zqyg.model.vo.product.CategoryExcelVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {

    List<Category> selectCategoryListByParentId(int parentId);

    Long countByParentId(Long id);

    List<Category> selectAllCategory();

    void batchInsert(List<CategoryExcelVo> cachedDataList);
}
